function y = Diagonal_6(x)
% Diagonal 6 function
% x0=ones(n,1)
n=length(x); y=0;
for i=1:n
    y=y+exp(x(i))-(1-x(i));
end


